package com.boot2.core.dao.i;


import com.boot2.core.cache.aspectj.annotation.CacheConfig;
import com.boot2.core.cache.aspectj.annotation.Cacheable;
import com.boot2.core.dao.jpa.LongAbsctractDao;
import com.boot2.core.model.PositionProvince;

/**
 * @author zhangweilin
 * @ClassName: PositionProvinceJpaDao
 * @Description: 【行政区域-省份】 jpa dao
 * @date 2019-2-26 15:57:23
 */
@CacheConfig(cacheNames = {"model:positionProvince:positionProvinceDao"})
public interface PositionProvinceDao extends LongAbsctractDao<PositionProvince> {

    /**
     * 精确查找省
     *
     * @param provinceName
     * @return
     */
    @Cacheable(key = "methodName +#p0")
    PositionProvince findFirstByProvinceName(String provinceName);


    /**
     * 模糊 查找
     *
     * @param provinceName
     * @return
     */
    @Cacheable(key = "methodName +#p0")
    PositionProvince findFirstByProvinceNameLike(String provinceName);

}